<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=8"/>
		<title>公众平台管理</title>
<include file="Public:ref" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/autoreply.css" />
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/media.css" />
		<script type="text/javascript">
			var interval;
		 	$(function(){
		 		$('#aside_nav ul li a').click(function(){
		 			var url=$(this).attr('url');
		 			if(url){
		 				showLoading('加载中...','__PUBLIC__/img/loading1.gif');
			 			$.get(url+"?ts="+new Date().getTime(),function(html){
			 				$("#main_content").html(html);
			 				hideLoading();
			 			});
			 			$('#aside_nav ul li a.active').removeClass('active');
			 			$(this).addClass('active');
		 			}else{
		 				var subs=$(this).parent().find('.sub');
		 				if(subs.size()>0){
		 					var sub=$(subs.get(0));
		 					if(sub.css('display')=='none'){
		 						sub.toggle("blind");
		 						$(this).find('.right').removeClass("fa-angle-right").addClass("fa-angle-down");
		 					}else{
		 						sub.toggle("blind");
		 						$(this).find('.right').removeClass("fa-angle-down").addClass("fa-angle-right");
		 					}
		 				}
		 				
		 			}
		 		});
		 		$($('#aside_nav ul li a').get(0)).click()
		 		
		 	});
		</script>
	 	 
	</head>
	<body>
		<!-- 头部 -->
		<div id="header" class="header" style="">
		<include file="Public:nav" />
		</div>
		<div class="slimScrollDiv"	style="width: 250px;height: 100%;">
			<aside id="left_panel" class='sidebar'>
			<nav id="aside_nav">
			<ul>
				<li>
					<a url="{:U('Reply/queryFocus')}" id='addedReplyLi'>被添加自动回复<i class="fa fa-angle-right right"></i> </a>
				</li>
				<li>
					<a  url="{:U('Reply/queryReFocus')}" pane="#pane4">再次关注回复<i class="fa fa-angle-right right"></i> </a>
				</li>
				<li>					
					<a url="{:U('Reply/queryAuto')}">消息自动回复<i class="fa fa-angle-right right"></i> </a>
				</li>
				<li onclick="initRuleList()">
					<a  url="{:U('Reply/queryKeyword')}">关键词自动回复<i class="fa fa-angle-right right"></i>
					</a>
				</li>
				<li>
					<a  url="{:U('Reply/queryLatLng')}">位置消息回复<i class="fa fa-angle-right right"></i> </a>
				</li>
				<li>
					<a  url="{:U('Reply/querySubscribeOrNot')}">订阅/退订接口<i class="fa fa-angle-right right"></i>
					</a>
				</li>
			</ul>
			</nav>
			</aside>
		</div>
		
		<!-- 主体 -->
		<div id="main_content">
		</div>
		<div id='msgTip'  class="alert alert-success"></div>
	</body>
</html>
